//
//  BaseViewController.h
//  DaMaoMall
//
//  Created by HXHL-wally on 16/7/8.
//  Copyright © 2016年 daMao-wally. All rights reserved.
//

#import <UIKit/UIKit.h>

// 视图控制器基类
@interface BaseViewController : UIViewController
{
    CGFloat aHeight; //电池栏20高度 加载的时候用，iOS7以上系统为20
}
@property (nonatomic, strong) UIView * navigationBarView; // navigationBar view
@property (nonatomic, strong) UIImageView * navigationBarBg; //navigation 图片
@property (nonatomic, strong) UIButton * leftBtn; //左侧按钮
@property (nonatomic, strong) UIButton * rightBtn; //右侧按钮
@property (nonatomic, strong) UIView * contentView; //内容
@property (nonatomic, strong) UILabel * titleLabel; //头title

- (void)changFrameWhenHiddenNavgationBar; // 但隐藏bar时当前页面frame改变
- (void)backPrePage; //返回上一页
@end


// 快速创建控件
@interface UIViewController (Create_UI_Method)
// 创建Button
UIButton *creatGHButton(CGRect frame,NSString *title,UIImage*normalImage,UIImage *hightImage);
// 创建TextField
UITextField *creatGHTextField(NSString *placeTitle,CGRect frame);
// 创建Lable
UILabel *creatGHLable(NSString *name ,CGRect frame);
// 创建ImageView
UIImageView *creatGHImageView(CGRect frame,UIImage *image);

@end
